﻿using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;

public class LTreeBinding {
    [DllImport("__Internal")]
    private static extern string _getBuildTypeFromPlist();

#if UNITY_ANDROID
    static private AndroidJavaObject cls = new AndroidJavaObject("com.lemontree.android.LTAndroid");
#endif

    public static string GetBuildType()
    {
#if UNITY_IPHONE
        return _getBuildTypeFromPlist();
#elif UNITY_ANDROID
        return cls.Call<string>("GetBuiltType");
#endif
        return "";
    }
}
